<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head><title>class Invoker in org.scalatest.PrivateMethodTester</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.2.final)" name="generator"></meta><link href="../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../script.js"></script>
        </head>
        <body onload="init()">
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">ScalaTest 0.9.4</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
        
      <div class="entity">
        <a href="../../org/scalatest/PrivateMethodTester.html" target="_self">org.scalatest.PrivateMethodTester</a>
        <br></br>
        <span class="entity">class  Invoker</span>
      </div><hr></hr>
      <div class="source">
        [source: <a href="" class="org/scalatest/PrivateMethodTester"><code>org/scalatest/PrivateMethodTester.scala</code></a>]
      </div><hr></hr>
      <a name="Invoker"></a><dl>
      <dt>
        
        <code></code>
        <code>class</code>
        <em>Invoker</em>(<em>target</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>)
      </dt>
      <dd><code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a></dd>
    </dl>
      <dl><dd>Class used via an implicit conversion to enable private methods to be tested.</dd></dl>
      <dl></dl>
    
      


<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Method Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../org/scalatest/PrivateMethodTester.Invoker.html#invokePrivate%28PrivateMethodTester.this.Invocation%5BT%5D%29" target="_self">invokePrivate</a></em>
        [<em>T</em>](<em>invocation</em> : <a href="../../org/scalatest/PrivateMethodTester.Invocation.html" target="_self">Invocation</a>[<a href="../../org/scalatest/PrivateMethodTester.Invoker.html#invokePrivate%28PrivateMethodTester.this.Invocation%5BT%5D%29#T" target="_self">T</a>]) : <a href="../../org/scalatest/PrivateMethodTester.Invoker.html#invokePrivate%28PrivateMethodTester.this.Invocation%5BT%5D%29#T" target="_self">T</a>
        
        <div>Invoke a private method. This method will attempt to invoke via reflection a private method.
     The name of the method to invoke is contained in the <code>methodName</code> field of the passed <code>Invocation</code>.
     The arguments to pass are contained in the <code>args</code> field. The object on which to invoke the private
     method is the <code>target</code> object passed to this <code>Invoker</code>'s primary constructor.
     The type parameter, <code>T</code>, is the return type of the private method.</div>
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#hashCode%28%29" target="_self">hashCode</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#equals%28Any%29" target="_self">equals</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#toString%28%29" target="_self">toString</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html" target="_self">Any</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a>
        </td></tr>
      </table>


      


<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Method Details</td></tr>
        </table><div><a name="invokePrivate%28PrivateMethodTester.this.Invocation%5BT%5D%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>invokePrivate</em>[<em>T</em>](<em>invocation</em> : <a href="../../org/scalatest/PrivateMethodTester.Invocation.html" target="_self">Invocation</a>[<a href="../../org/scalatest/PrivateMethodTester.Invoker.html#invokePrivate%28PrivateMethodTester.this.Invocation%5BT%5D%29#T" target="_self">T</a>]) : <a href="../../org/scalatest/PrivateMethodTester.Invoker.html#invokePrivate%28PrivateMethodTester.this.Invocation%5BT%5D%29#T" target="_self">T</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Invoke a private method. This method will attempt to invoke via reflection a private method.
     The name of the method to invoke is contained in the <code>methodName</code> field of the passed <code>Invocation</code>.
     The arguments to pass are contained in the <code>args</code> field. The object on which to invoke the private
     method is the <code>target</code> object passed to this <code>Invoker</code>'s primary constructor.
     The type parameter, <code>T</code>, is the return type of the private method.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Parameters</b></dt><dd><code>invocation - </code>the <code>Invocation</code> object containing the method name symbol and args of the invocation.</dd><dt style="margin:10px 0 0 20px;">
        <b>Returns</b></dt><dd>the value returned by the invoked private method</dd><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>IllegalArgumentException - </code>if the target object does not have a method of the name, with argument types     compatible with the objects in the passed args array, specified in the passed <code>Invocation</code> object.</dd></dl>
    <hr></hr></div>


    <hr></hr>
        <div>Copyright (C) 2001-2008 Artima, Inc. All rights reserved.</div><table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">ScalaTest 0.9.4</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
      </body>
      </html>